package com.learn.kotlinlearndemolist.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast

class OrderedReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        if (intent.action.equals("com.kotlin.demo.custom.broadcast")) {
            Toast.makeText(context, "Ordered broadcast", Toast.LENGTH_SHORT).show()
//        abortBroadcast()
        }
    }
}